import 'package:bxultimate/data/request/shop_request.dart';
import 'package:get/get.dart';

import 'state.dart';

class ShopDetailController extends GetxController {
  final ShopDetailState state = ShopDetailState();

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();

    getData();
  }

  getData() async {
    var shop = await ShopRequest.getShopDetail(Get.arguments);
    shop.shopPhoto!.add(shop.shopFacadePhoto!);
    state.shop = shop;
  }
}
